package com.bulletelc.apollopre.module.user.FastRegister;

import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * Created by CX on 2018/4/11.
 */

public class FastContract {

    interface View extends IView {

        void onSuccessSMS(String authCode, String encrypt);
        void onFailSMS(String fail);
        void onErrorSMS(String error);

        void onSuccess();
        void onFail(String fail);
        void onError(String error);

        void onSuccessAutoLogin();
        void onErrorAutoLogin(String error);
        void onFailAutoLogin(String fail);

        void onSuccessGetSetting();
        void onFailGetSetting(String fail);
        void onErrorGetSetting(String error);
    }

    interface Presenter extends IPresenter<View> {
        /**
         * 发送验证码
         */
        void sendSMS(String mobile_number);

        /**
         * 注册接口
         *
         * @param mobile_number 手机号
         * @param password      密码
         */
        void register(String mobile_number, String password, String encrypt, String unionid);

        void autoLogin(String mobile, String password);

        /**
         * 获取跟人信息
         */
        void getSetting();
    }
}
